#!/bin/sh

tmp_folder=$1
process_id=$2
cd ${tmp_folder}
jmap -dump:file=jmapdump.bin ${process_id}